var e = require("@/services/user-service"),
  n = a(require("../../../config/index")),
  i = a(require("../../../config/page")),
  t = require("../../../utils/jump");
function a(e) {
  return e && e.__esModule ? e : { default: e };
}
Page({
  data: {
    CDN: n.default.CDN,
    list: [
      {
        icon: "yinsizhengce",
        name: "隐私政策",
        page: i.default.PAGE_MINE_PRIVACY,
      },
      { icon: "icon_manage", name: "权限管理", page: "" },
      {
        icon: "gerenxinxi",
        name: "个人信息",
        page: i.default.PAGE_ACCOUNT_INFO,
      },
    ],
  },
  enter: function (e) {
    var n = e.detail.page;
    n ? (0, t.navigateTo)(n, {}) : wx.openSetting();
  },
  onLoginOut: function () {
    (0, e.loginOut)(),
      wx.showToast({ title: "退出登录成功", icon: "none", duration: 2500 }),
      setTimeout(function () {
        wx.navigateBack();
      }, 1e3);
  },
  toLogOut: function () {
    wx.navigateTo({ url: i.default.PAGE_MINE_LOGOUT });
  },
});
